package cn.itcast.java.extend;

/**
 * Author itcast
 * Date 2021/10/9 0:33
 * Desc TODO
 */
public class Son extends Father {
    int age = 20;

    public void show(){
        int age =30;
        System.out.println(age);
        System.out.println(this.age);
        System.out.println(super.age);
    }

    @Override
    public void eat() {
        System.out.println("儿子喜欢吃西餐");
    }
}
